/*
 * mycalibration.cpp
 *
 *  Created on: Mar 12, 2013
 *      Author: rdu
 */

#include "mycalibration.h"

MyCalib::MyCalib()
{

}

MyCalib::~MyCalib()
{

}

void MyCalib::PrepImages()
{

}

void MyCalib::CalcChessboardCorners(Size boardSize, float squareSize, vector<Point3f>& corners)
{
	corners.resize(0);

	for( int i = 0; i < boardSize.height; i++ )
		for( int j = 0; j < boardSize.width; j++ )
			corners.push_back(Point3f(float(j*squareSize),
								float(i*squareSize), 0));
}

bool MyCalib::Calib3Cameras(vector<vector<Point2f> > imagePoints1,
        vector<vector<Point2f> > imagePoints2,
        vector<vector<Point2f> > imagePoints3,
        Size imageSize, Size boardSize,
        float squareSize, float aspectRatio,
        int flags,
        Mat& cameraMatrix1, Mat& distCoeffs1,
        Mat& cameraMatrix2, Mat& distCoeffs2,
        Mat& cameraMatrix3, Mat& distCoeffs3,
        Mat& R12, Mat& T12, Mat& R13, Mat& T13)
{

	return true;
}
